﻿
<div class="row">
    <div class="col-xs-12 col-sm-8">
        <h1></h1>
    </div>
    <div class="col-xs-12 col-sm-4" style="padding-top:30px;">
        @if (Request.IsAuthenticated)
        {
            <text>
                您好，@Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!
                @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
                {
                    @Html.AntiForgeryToken()
                    <span class="glyphicon glyphicon-user" aria-hidden="true"></span> <a href="javascript:document.getElementById('logoutForm').submit()"> 注销</a>
                    <span>&emsp;</span><span class="glyphicon glyphicon-cog" aria-hidden="true"></span> @Html.ActionLink("个人设置 ", "Manage", "Account")
                }

            </text>
        }
        else
        {
            <ul>
                @*<li><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> @Html.ActionLink("注册", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>*@
                <li><span class="glyphicon glyphicon-user" aria-hidden="true"></span> @Html.ActionLink("登录", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
            </ul>
        }

    </div>
</div>
